#include "kuba.h"

kuba::kuba() {}

kuba::kuba(qreal a, qreal b, qreal x, qreal y, QPixmap p1, QPixmap p2, QPixmap p3, QPixmap p4,bool d,int id)
{
    l=a,r=b;
    sx=x,sy=y;
    pList.append(p1);
    pList.append(p2);
    pList.append(p3);
    pList.append(p4);

    Id=id;
    dir=d;

}

QRectF kuba::boundingRectF()
{
     return QRectF(this->pos().x(),this->pos().y(),this->boundingRect().width(),this->boundingRect().height());
}
